package com.zzyl.mapper;


import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    @Select("select * from nursing_level")
    List<NursingLevelVo> getAllNursingLevel();

    NursingLevel selectById(Long id);


    List<NursingLevelVo> selectByPage(String name, Integer status);

    @Delete("delete from nursing_level where id = #{id}")
    void deleteNursingLevel(Long id);

    void updateStatus(Long id, Integer status);


    void insert(NursingLevel nursingLevel);


    void update(NursingLevel nursingLevel);
}
